<%@ page import="rentadomus.Office" %>
<%@ page import="rentadomus.Place" %>

<div class="fieldcontain ${hasErrors(bean: placeInstance, field: 'titlePlace', 'error')} required">
	<label for="titlePlace">
		<g:message code="place.titlePlace.label" default="Title Place" />
		<span class="required-indicator">*</span>
	</label>
	<g:textField name="titlePlace" required="" value="${placeInstance?.titlePlace}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: placeInstance, field: 'strata', 'error')} ">
	<label for="strata">
		<g:message code="place.strata.label" default="Strata" />
		
	</label>
	<g:select name="strata" from="${1..6}" 
                  value="${placeInstance?.strata}" valueMessagePrefix="place.strata" 
                  noSelection="${['null':'-----']}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: placeInstance, field: 'address', 'error')} required">
	<label for="address">
		<g:message code="place.address.label" default="Address" />
		<span class="required-indicator">*</span>
	</label>
	<g:textField name="address" required="" value="${placeInstance?.address}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: placeInstance, field: 'rentPrice', 'error')} required">
	<label for="rentPrice">
		<g:message code="place.rentPrice.label" default="Rent Price" />
		<span class="required-indicator">*</span>
	</label>
	<g:field name="rentPrice" value="${fieldValue(bean: placeInstance, field: 'rentPrice')}" required=""/>
</div>

<div class="fieldcontain ${hasErrors(bean: placeInstance, field: 'area', 'error')} required">
	<label for="area">
		<g:message code="place.area.label" default="Area" />
		<span class="required-indicator">*</span>
	</label>
	<g:field name="area" value="${fieldValue(bean: placeInstance, field: 'area')}" required=""/>
</div>

<div class="fieldcontain ${hasErrors(bean: placeInstance, field: 'neighborhood', 'error')} required">
	<label for="neighborhood">
		<g:message code="place.neighborhood.label" default="Neighborhood" />
		<span class="required-indicator">*</span>
	</label>
	<g:textField name="neighborhood" required="" value="${placeInstance?.neighborhood}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: placeInstance, field: 'description', 'error')} required">
	<label for="description">
		<g:message code="place.description.label" default="Description" />
		<span class="required-indicator">*</span>
	</label>
	<g:textField name="description" required="" value="${placeInstance?.description}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: placeInstance, field: 'cableTv', 'error')} ">
	<label for="cableTv">
		<g:message code="place.cableTv.label" default="Cable Tv" />
		
	</label>
	<g:checkBox name="cableTv" value="${placeInstance?.cableTv}" />
</div>

<div class="fieldcontain ${hasErrors(bean: placeInstance, field: 'energy', 'error')} ">
	<label for="energy">
		<g:message code="place.energy.label" default="Energy" />
		
	</label>
	<g:checkBox name="energy" value="${placeInstance?.energy}" />
</div>

<div class="fieldcontain ${hasErrors(bean: placeInstance, field: 'gas', 'error')} ">
	<label for="gas">
		<g:message code="place.gas.label" default="Gas" />
		
	</label>
	<g:checkBox name="gas" value="${placeInstance?.gas}" />
</div>

<div class="fieldcontain ${hasErrors(bean: placeInstance, field: 'phone', 'error')} ">
	<label for="phone">
		<g:message code="place.phone.label" default="Phone" />
		
	</label>
	<g:checkBox name="phone" value="${placeInstance?.phone}" />
</div>

<div class="fieldcontain ${hasErrors(bean: placeInstance, field: 'water', 'error')} ">
	<label for="water">
		<g:message code="place.water.label" default="Water" />
		
	</label>
	<g:checkBox name="water" value="${placeInstance?.water}" />
</div>

<div class="fieldcontain ${hasErrors(bean: placeInstance, field: 'wifi', 'error')} ">
	<label for="wifi">
		<g:message code="place.wifi.label" default="Wifi" />
		
	</label>
	<g:checkBox name="wifi" value="${placeInstance?.wifi}" />
</div>


<div class="fieldcontain ${hasErrors(bean: officeInstance, field: 'officeNumber', 'error')} required">
	<label for="officeNumber">
		<g:message code="office.officeNumber.label" default="Office Number" />
		<span class="required-indicator">*</span>
	</label>
	<g:field name="officeNumber" type="number" value="${officeInstance.officeNumber}" required=""/>
</div>

<div class="fieldcontain ${hasErrors(bean: officeInstance, field: 'baths', 'error')} required">
	<label for="baths">
		<g:message code="office.baths.label" default="Baths" />
		<span class="required-indicator">*</span>
	</label>
	<g:field name="baths" type="number" value="${officeInstance.baths}" required=""/>
</div>

<div class="fieldcontain ${hasErrors(bean: officeInstance, field: 'kitchenette', 'error')} ">
	<label for="kitchenette">
		<g:message code="office.kitchenette.label" default="Kitchenette" />
		
	</label>
	<g:checkBox name="kitchenette" value="${officeInstance?.kitchenette}" />
</div>

<div class="fieldcontain ${hasErrors(bean: officeInstance, field: 'parkingSlots', 'error')} required">
	<label for="parkingSlots">
		<g:message code="office.parkingSlots.label" default="Parking Slots" />
		<span class="required-indicator">*</span>
	</label>
	<g:field name="parkingSlots" type="number" value="${officeInstance.parkingSlots}" required=""/>
</div>

